package cando1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 安慕希
 * Date: 2025-03-14
 * Time: 15:19
 */
public class Score {
    int Chinese;
    int Math ;
    int English;
    int Physics;
    int Chemistry;
    int Biology;

    public void TotalPoint(){
        System.out.println("总分为="+Chinese+Math+English+Physics+Chemistry+Biology);
    }
    //没有显式定义，编译器会⽣成⼀份默认的构造⽅法，⽣成的默认构造⽅法⼀定是⽆参的
    public static void main(String[] args){
        Score exam = new Score();
        exam.TotalPoint();
    }
}
